
class_name ZhuJianShi


static func CreateCardData() -> CardData:
	var data = CardData.new()
	
	data.attack = 15
	data.hp = 120
	data.maxHp = data.hp
	data.defence = 8
	data.speed = 5
	
	data.cardName = "铸剑师"
	data.cardDesc = "上阵时所有友方\n攻击力 +5"
	data.image = load("res://texture/Role/铸剑师.png")
	
	return data


static func CreateCard() -> Card:
	var cardprefab = load("res://prefab/card.tscn")
	var card: Card = cardprefab.instantiate()
	
	var data: CardData = CreateCardData()
	
	data.upLine = func ():
		
		for i: Card in PlayerGroup.Inst.cards:
			i.data.attack += 5
			i.runBuffAnim("攻击力 + 5")
		
	
	card.setData(data)
	
	return card
	


	
